#pragma once

#include "stdEmenyLib.h"
#include "stdBulletLib.h"
#include "selfBulletManager.h"
#include "stdBoss.h"

class Boss
{
public:
	Boss(stdBoss std, Point p, Point* play);
	void draw();
	void updata();
	void checkHit(selfBullet& b);
	bool checkRemove()
	{
		return _remove;
	}
	float getRange()
	{
		return _std.bitmap.range;
	}
	Point getNowPoint()
	{
		return _std.bitmap.p;
	}
	void getHit(int i)
	{
		_std.hp -= i;
	}
protected:
private:
	bool readFromVector(int time)
	{
		return nowFps == time;
	}
	stdBoss _stdBoss;
	vector<stdEmeny> _stdManager;
	inline void move();
	inline void calcSpd(emenyMessage* m);
	inline void checkHp();
	inline void calcSpd();
	inline void init();
	stdEmeny _std;
	int _status;
	int nextFps;
	int nextBulletFps;
	int nowFps;
	int nowRead;
	int nowReadBullet;
	int nowDraw;
	int count;
	bool waitingFlag;
	bool _remove;
	Point* playPoint;
	float vx,vy;
	float ax,ay;
	float alpha;
};